package singleUseDeprecated;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class GetAsCharacterExampleTest2_10 {

    @Test
    public void testGetAsCharacter_ValidSingleCharacter() {
        // 测试单字符输入
        String jsonValue = "A";
        Character result = GetAsCharacterExample2_10.getAsCharacter(jsonValue);
        assertEquals(Character.valueOf('A'), result); // 使用 Character.valueOf
    }
}
